using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region UserDoc

	/// <summary>
	/// UserDoc object for NHibernate mapped table 'UserDoc'.
	/// </summary>
	public class UserDoc
	{
		#region Member Variables
		
		protected int _id;
		protected string _title;
		protected string _remark;
		protected string _filePath;
		protected bool _isDel;
		protected int _sendUser;
		protected string _flag;
		protected int _userId;

		#endregion

		#region Constructors

		public UserDoc() { }

		public UserDoc( string title, string remark, string filePath, bool isDel, int sendUser, string flag, int userId )
		{
			this._title = title;
			this._remark = remark;
			this._filePath = filePath;
			this._isDel = isDel;
			this._sendUser = sendUser;
			this._flag = flag;
			this._userId = userId;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string Title
		{
			get { return _title; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for Title", value, value.ToString());
				_title = value;
			}
		}

		public  virtual string Remark
		{
			get { return _remark; }
			set
			{
				if ( value != null && value.Length > 4000)
					throw new ArgumentOutOfRangeException("Invalid value for Remark", value, value.ToString());
				_remark = value;
			}
		}

		public  virtual string FilePath
		{
			get { return _filePath; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for FilePath", value, value.ToString());
				_filePath = value;
			}
		}

		public  virtual bool IsDel
		{
			get { return _isDel; }
			set { _isDel = value; }
		}

		public  virtual int SendUser
		{
			get { return _sendUser; }
			set { _sendUser = value; }
		}

		public  virtual string Flag
		{
			get { return _flag; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Flag", value, value.ToString());
				_flag = value;
			}
		}

		public  virtual int UserId
		{
			get { return _userId; }
			set { _userId = value; }
		}

		

		#endregion
	}
	#endregion
}